package com.wuchao.redis;

import redis.clients.jedis.Jedis;

/**
 * @author 吴超66
 * @version 1.0
 * @date 2022/6/6 15:30
 */
public class TRedis {
    public static void main(String[] args) {
        //1简易连接
        Jedis jedis = new Jedis("47.110.249.245");
        System.out.println("连接成功");
        jedis.set("t1431","我爱你们。你们要加油111111");
        System.out.println("设置成功，拿到的值是"+jedis.get("t143"));
        //2连接池连接
        Jedis jedis1 = RedisUtil.getJedis();
        jedis1.set("001","001");
        //3客户端展示
    /*    RedisClient redisClient = new RedisClient();
        redisClient.show();*/



    }
}
